/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package fatclientnbp;

import Model.TripHandler;

/**
 *
 * @author smulle
 */
public class SortingContainer {
    
    public static int SORT_BY_PRICE = TripHandler.SORT_BY_PRICE;
    public static int SORT_BY_TIME = TripHandler.SORT_BY_TIME;
    
    private int sortType;
    
    private String sortString;

    public int getSortType() {
        return sortType;
    }
    
    
    
    public SortingContainer(int sortType){
        this.sortType = sortType;
        if(sortType == SORT_BY_PRICE){
            sortString = "By Price";
        }else if(sortType == SORT_BY_TIME){
            sortString = "By Time";
        }else{
            sortString = "invalid";
        }
    }
    
    public String toString(){
        return sortString;
    }

}
